//
//  TYZLoadingView.h
//  TYZ_SC
//
//  Created by 李贤立 on 2017/12/20.
//  Copyright © 2017年 Capfer. All rights reserved.
//

#import "TYZView.h"
@class MBProgressHUD;
// 延迟消失loading框的标识
#define TYZLoadingViewHiddenSymbol @"=====++++++------++++())_++_++++++"
@interface TYZLoadingView : TYZView
/**
 *  显示成功信息
 */
+ (void)showSuccess:(NSString *)success;
+ (void)showSuccess:(NSString *)success complement:(void(^)(void))complement;
+ (void)showSuccess:(NSString *)success toView:(UIView *)view;
+ (void)showSuccess:(NSString *)success toView:(UIView *)view complement:(void(^)(void))complement;

/**
 *  显示错误信息
 *
 */
+ (void)showError:(NSString *)error;
+ (void)showError:(NSString *)error complement:(void(^)(void))complement;
+ (void)showError:(NSString *)error toView:(UIView *)view;
+ (void)showError:(NSString *)error toView:(UIView *)view complement:(void(^)(void))complement;

/**
 *  显示一般信息
 *
 */
+ (void)showNormal:(NSString *)normal;
+ (void)showNormal:(NSString *)normal complement:(void(^)(void))complement;
+ (void)showNormal:(NSString *)normal toView:(UIView *)view;
+ (void)showNormal:(NSString *)normal toView:(UIView *)view complement:(void(^)(void))complement;

/**
 *  显示持续信息，默认无文字显示，只有菊花转动
 *
 *  @return 直接返回一个MBProgressHUD，需要手动关闭
 */
+ (MBProgressHUD *)showMessage;
+ (MBProgressHUD *)showMessage:(NSString *)message;
+ (MBProgressHUD *)showMessage:(NSString *)message toView:(UIView *)view;
/**
 *  手动关闭MBProgressHUD
 */
+ (void)hideHUD;
+ (void)hideHUDForView:(UIView *)view;
@end
